﻿{layout:default} {class:Shop.Admin.Supplier.Verified_Log}
<lbhead>
    <title><%=Tag("身份验证")%>-<%=site.title%></title>
</lbhead>
<lbpath>
    <div class="tools">
    <ul>
    <%if (PageReturnMsg == ""){%>
    <%if (user_id > 0)
      { %>
    <li class="tip"><a href="#"><b></b><span><%=Tag("登陆账号")%>：<%=user.UserName%></span></a></li>
    <li class="add"><a href="javascript:void(0);" onclick="EditUser(<%=user_id%>);"><b></b><span><%=Tag("编辑")%></span></a></li>
    <%} %>
    <li class="submit"><a href="javascript:void(0);" onclick="Update();"><b></b><span><%=Tag("保存")%></span></a></li>
    <%}%>
    <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > <a href="<%=site.AdminPath %>/supplier/user.aspx"><%=Tag("商家列表")%></a> > <%=Tag("身份验证")%></span></li>
    </ul>
    </div>
</lbpath>
<lbbody>
    <table class="datalist">
        <tr class="title">
            <th style="width: 200px">
                <%=Tag("项目名称")%>
            </th>
            <th style="width: 200px">
                <%=Tag("店铺")%>
            </th>
            <th style="width: 150px">
                <%=Tag("图片")%>
            </th>
            <th style="width: 130px">
                <%=Tag("提交日期")%>
            </th>
            <th>
                <%=Tag("状态")%>
            </th>
        </tr>
        <%foreach (Shop.Model.Lebi_Supplier_Verified_Log model in models)
          {
              Shop.Model.Lebi_Supplier supplier = GetSupplier(model.Supplier_id); 
              %>
        <tr class="list">
            <td>
                <%=VerifiedName(model.Verified_id)%>
                <input type="hidden" name="IDS" shop="true" value="<%=model.id %>" />
            </td>
            <td>
                <%=supplier.SubName%>
            </td>
            <td>
                <% if (model.ImageUrl == "")
                   { %>
                &nbsp;
                <%}
                   else
                   { %>
                <a href="<%=site.WebPath + model.ImageUrl %>" data-lightbox="image<%=model.id %>">
                <img src="<%=site.WebPath + model.ImageUrl %>" style="height: 25px;vertical-align:middle" name="ImageUrl" /></a>
                <%} %>
            </td>
            <td>
                <%=FormatTime(model.Time_Add)%>
            </td>
            <td>
                <select name="SupplierVerifiedStatus<%=model.id %>" id="SupplierVerifiedStatus<%=model.id %>" shop="true">
                    <%=Shop.Bussiness.EX_Type.TypeOption("SupplierVerifiedStatus", model.Type_id_SupplierVerifiedStatus, CurrentLanguage)%>
                </select>
            </td>
        </tr>
        <%} %>
    </table> 
    <script type="text/javascript">
        function EditUser(id) {
            var title_ = "<%=Tag("编辑商家")%>";
            var url_ = "user_edit_window.aspx?id=" + id;
            var width_ = 600;
            var height_ = "auto";
            var modal_ = true;
            EditWindow(title_, url_, width_, height_, modal_);
        }
        function Update() {
            var postData = GetFormJsonData("shop");
            var url = "<%=site.AdminPath %>/ajax/ajax_supplier.aspx?__Action=Verified_Log_Update&user_id=<%=user_id %>&user_name=<%=user.UserName %>";
            RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "")});
        }
    </script>
</lbbody>
<lbbottom>
<div class="bottom" id="body_bottom">
    <%=PageString%>
</div>
</lbbottom>